This dataverse contains the replication code for 
"Toward an Ideological Common Space: Extending Bonica’s CFscores to the Citizen Level"


DESCRIPTION OF FILES

1_prepare_data.R - cleans CCES and merges with the Hill and Huber (2017) matching data

2_comparison_analysis.R - compares donor and non-donor ideology, studies issues --> CFscore link

3_impute_validate.R - imputes CFscores for non-donors, validates the measure, compares it to others

4_vote_choice.R - runs gubernatorial vs. US House vote choice analysis

collect_cand_cfscores.R - collects CFscores for 2012 gubernatorial and US House candidates

SM_analysis.R - analysis to articulate data requirements for future expansions of CFscores

Imputed_CFscores.dta - Data file of imputed CFscores for 2012 CCES respondents as estimated in paper. Contains scores and CCES caseid (V101).

cces12.dta - Data file for the 2012 CCES survey

yale_match.dta - Data file from Hill and Huber (2017), matching CCES donors to CFscores

dime_recipients_all_1979_2014.csv - Data file from Bonica (2014) of candidate CFscores


IMPORTANT NOTES:

* CCES, DIME, and Hill and Huber (2017) files are provided here for convenience. If you wish to work 
with these data for purposes other than replication, please download from the original source and cite appropriately.

* For replication, all files and exports should be placed in working directory.

* Scripts can be run in order, but collect_cand_cfscores.R should be run before 4_vote_choice.R.